package com.enhe.gck.pojo;
 import java.util.Date;
 import java.lang.String;
 import java.lang.Integer;
 import java.math.BigDecimal;
 import java.lang.Long;
 import java.lang.Float;
 import java.lang.Double;
 import com.kuangkie.carbon.record.Updatable;
 import com.kuangkie.carbon.record.annotation.Attribute;
 import com.kuangkie.carbon.record.annotation.CarbonRecord;
 import com.kuangkie.carbon.record.annotation.RecordCode;
 import com.alibaba.fastjson.annotation.JSONField;
 import com.kuangkie.carbon.uid.model.UidManager;

// 扣重管理
@CarbonRecord("hwane16885")
public class WeightDeduction implements Updatable{
    @JSONField(name="唯一编码")
    @RecordCode
    private Long id = UidManager.getLongUID();

    // 名称
    @JSONField(name="名称")
    @Attribute("hwan16887")
    private String name;

    // 备注
    @JSONField(name="备注")
    @Attribute("hwan16888")
    private String remark;

    // 重量
    @JSONField(name="重量")
    @Attribute("hwan16889")
    private Double weight;

    // 是否按照比例
    @JSONField(name="是否按照比例")
    @Attribute("hwan16890")
    private boolean isRatio;

    // 比例
    @JSONField(name="比例")
    @Attribute("hwan16891")
    private Double ratio;

    // 是否默认扣重
    @JSONField(name="是否默认扣重")
    @Attribute("hwan18131")
    private boolean isDefault;

    public boolean getIsDefault() { 
        return isDefault;
    }
    public void setIsDefault(boolean isDefault) {
        this.isDefault = isDefault;
    }
    public String getName() { 
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Double getWeight() { 
        return weight;
    }
    public void setWeight(Double weight) {
        this.weight = weight;
    }
    public String getRemark() { 
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Long getId() { 
        return id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public boolean getIsRatio() { 
        return isRatio;
    }
    public void setIsRatio(boolean isRatio) {
        this.isRatio = isRatio;
    }
    public Double getRatio() { 
        return ratio;
    }
    public void setRatio(Double ratio) {
        this.ratio = ratio;
    }
    @Override
    public String getRecordCode() {
        return this.id==null ? null : this.id.toString();
    }
}